package testsuite_homepage1;

import org.openqa.selenium.WebDriver;

public class Homepage {

	private final WebDriver driver;

	private POMLoginForm loginf;

	public Homepage(WebDriver driver)

	{

		this.driver = driver;

		if (!(driver.getPageSource().contains(
				"As a graduate of the MPTQA Information Technology program")

		&& driver.getPageSource().contains("Forgot your password?"))) {

			throw new IllegalStateException("Not Logged homepage not appears.");

		}

		loginf = new POMLoginForm(this.driver);

	}

	public POMLoginForm getLoginForm()

	{
		return loginf;

	}

}
